package cn.topevery.garden.entity.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.topevery.garden.entity.po.GreFile;
import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 保养记录 视图
 *
 * @author code-generate
 * @date 2022-02-17
 */
@Data
@ApiModel(value = "MaintenanceRecord 视图", description = "保养记录 视图")
public class MaintenanceRecordVO implements Serializable {
    /**
     * 自增id
     */
    private Integer id;


    /**
     * 记录时间
     */
    @ApiModelProperty(value = "记录时间")
    @Excel(name = "记录时间", orderNum = "0")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime date;

    /**
     * 树木id
     */
    @ApiModelProperty(value = "树木id")
    @Excel(name = "树木id", orderNum = "0")
    private Integer treeId;

    private String code;

    private String name;

    private Double lng;

    private Double lat;

    private String userName;

    private List<GreFile> fileList;

    /**
     * 保养记录编号
     */
    private String recordCode;

}
